package com.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.entity.SmsSpikeNotification;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SmsSpikeNotificationService extends IService<SmsSpikeNotification> {
    /**
     * 根据ID查找通知
     * @param id
     * @return
     */
    public SmsSpikeNotification getById(Integer id);

    /**
     * 查找所有通知
     * @return
     */
    public List<SmsSpikeNotification> getAll();

    /**
     * 新增或修改通知
     * @param smsSpikeNotification
     * @return
     */
    public boolean save(SmsSpikeNotification smsSpikeNotification);

    /**
     * 根据ID删除通知
     * @param id
     * @return
     */
    public boolean deleteById(Integer id);
}
